package edu.test.entities;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@Entity
@Table(name = "tbl_Deformation")
public class Deformation extends BaseEntity {

	@Column(name = "AparatureId")
	private long aparatureRef;

	@Column(name = "Value", precision = 15, scale = 10)
	private BigDecimal Value;

	@Column(name = "CaptionTime")
	@Temporal(TemporalType.DATE)
	private Date captionTime;

	public BigDecimal getValue() {
		return Value;
	}

	public void setValue(BigDecimal value) {
		Value = value;
	}

	public Date getCaptionTime() {
		return captionTime;
	}

	public void setCaptionTime(Date captionTime) {
		this.captionTime = captionTime;
	}

	public long getAparatureRef() {
		return aparatureRef;
	}

	public void setAparatureRef(long aparatureRef) {
		this.aparatureRef = aparatureRef;
	}

	public String toString() {
		return ReflectionToStringBuilder.toString(this,
				ToStringStyle.SHORT_PREFIX_STYLE);
	}

}
